﻿using BCCommon;
using BCCommon.OAEnums;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.Attendance.AttendanceWiFi
{
    /// <summary>
    /// 考勤WiFi信息
    /// </summary>
    public class AttendanceWiFiRequestDto
    {
        /// <summary>
        /// ModeId
        /// </summary>		        
        [Display(Name = "考勤方式Id")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public CheckInMode ModeId { get; set; }
        /// <summary>
        /// Wifi名称
        /// </summary>		        
        [Display(Name = "Wifi名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Name { get; set; }
        /// <summary>
        /// MAC地址
        /// </summary>	
        [Display(Name = "MAC地址")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [RegularExpression(RegexPatterns.MAC, ErrorMessage = "{0} 格式不正确")]
        public string MAC { get; set; }
    }
}
